<?php // $Id: page.tpl.php,v 1.1.2.7.2.2 2010/11/25 17:07:31 adrinux Exp $ ?>
<?php if (!empty($page['header'])): ?>
  <div id="header">
    <div<?php print drupal_attributes($container_attr); ?>>
      <div<?php print drupal_attributes($full_grid_attributes); ?>>
      <?php print render($page['header']); ?>
      </div>
    </div>
  </div>
<?php endif; ?>

<div id="branding">
  <div<?php print drupal_attributes($container_attributes); ?>>
    <div<?php print drupal_attributes($full_grid_attributes); ?>>
      <?php print $logo_themed; ?>
      <?php print $site_name_themed; ?>
      <?php print $site_slogan_themed; ?>
      <?php print render($page['highlighted']); ?>
    </div>
  </div>
</div>

<div id="navigation">
  <div<?php print drupal_attributes($container_attributes); ?>>
    <div<?php print drupal_attributes($full_grid_attributes); ?>>
      <?php print render($main_menu); ?>
      <?php print render($secondary_menu); ?>
      <?php print $breadcrumb; ?>
    </div>
  </div>
</div>

<div id="page">
  <div<?php print drupal_attributes($container_attributes); ?>>
    <div<?php print drupal_attributes($main_attributes); ?>>

      <?php if (!empty($page['sidebar_first'])): ?>
        <div<?php print drupal_attributes($left_attributes); ?>>
          <?php print render($page['sidebar_first']); ?>
        </div>
      <?php endif; ?>

      <div<?php print drupal_attributes($content_attributes); ?>>
        <?php print render($tabs); ?>
        <?php print $messages; ?>
        <?php print render($help); ?>

        <?php if ($title): ?>
          <h1 class="page-title"><?php print $title; ?></h1>
        <?php endif; ?>

        <?php print render($page['content']); ?>
      </div>

      <?php if (!empty($page['sidebar_second'])): ?>
        <div<?php print drupal_attributes($right_attributes); ?>>
          <?php print render($page['sidebar_second']); ?>
        </div>
      <?php endif; ?>
    </div>
  </div>
</div>

<?php if (!empty($page['footer'])): ?>
  <div id="footer">
    <div<?php print drupal_attributes($container_attributes); ?>>
      <div<?php print drupal_attributes($full_grid_attributes); ?>>
        <?php print $feed_icons; ?>
        <?php print render($page['footer']); ?>
      </div>
    </div>
  </div>
<?php endif; ?>
